//Display propterties
constants = {
    PI: 3.14159265359,
};

display = {
    imgdata: null,
    bgcolor: null,
    xres: 500,
    yres: 500,
    context: null,
};

filter = {
    kernel: null,
    type: 0,
};
//Render properties
render = {
    source: null, //Source of 3D scene
    //Ray tracing properties
    lighting: {
	ambient:true,
	diffuse:true,
	specular:true,
    },
    ray_trace: {
	xres: 1,
	yres: 1,
	trace_depth: 3,
	
    },
    //Post processing function arrays
    post_process: [],
    
    /*added by Shizhi Liu*/
    // super sampling antialiasing factor.
	ANTI_ALIASING_FACTOR: 1,
	
	// multipass matrix and flag.
	isMultiPass: false,
	AAFilter: [[-0.52, 0.38, 0.128],[0.41, 0.56, 0.119],[0.27, 0.08, 0.294],[-0.17, -0.29, 0.249],[0.58, -0.55, 0.104],[-0.31, -0.71, 0.106]],
	
	/*added by Shizhi Liu*/
};

//Camera Properties
camera = {
    FOV: 40,
};

//Light array
ambient_light = null;
lights = new Array();

//All polygons
polygons = {
    tri: [],
    sphere: [],
    plane: [],
};

